package com.aifund.app.entity.form.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 登录入参
 */
@Data
@ApiModel(description = "登录表单")
public class LoginByPhoneForm {

    @NotNull(message = "手机号不能为空")
    @Pattern(regexp ="^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")
    @ApiModelProperty(value = "手机号")
    private String phone;  //手机号

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码")
    private String password;  //密码


}
